<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>伸缩菜单项案例</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        div {
            width: 600px;
            height: 400px;
            border: 1px solid #ccc;
            margin: 100px auto;
        }

        div > ul {
            list-style: none;
            width: 100%;
            /* 将父元素设置为伸缩盒子 */
            display: flex;
        }

        div > ul > li {
            height: 36px;
            line-height: 36px;
            text-align: center;
            background-color: #9fff9d;
            border-right: 1px solid #ccc;
            flex: 1;
        }
    </style>
</head>
<body>
    <div>
        <ul>
            <li>首页</li>
            <li>商品分类</li>
            <li>我的订单</li>
            <li>购物车</li>
            <li>联系我们</li>
        </ul>
    </div>
</body>
</html>